package com.recruit.wechat.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 肖守凯
 * @since 2020-08-24
 */
@TableName("wechat_area")
@ApiModel(value="WechatArea对象", description="")
public class WechatArea extends Model<WechatArea> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "区域ID")
    @TableId("area_id")
    private String areaId;

    @ApiModelProperty(value = "父级ID")
    @TableField("area_p_id")
    private String areaPId;

    @ApiModelProperty(value = "区域名字")
    @TableField("area_name")
    private String areaName;

    @ApiModelProperty(value = "区域编码")
    @TableField("area_code")
    private String areaCode;

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }
    public String getAreaPId() {
        return areaPId;
    }

    public void setAreaPId(String areaPId) {
        this.areaPId = areaPId;
    }
    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }
    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    @Override
    protected Serializable pkVal() {
        return this.areaId;
    }

    @Override
    public String toString() {
        return "WechatArea{" +
            "areaId=" + areaId +
            ", areaPId=" + areaPId +
            ", areaName=" + areaName +
            ", areaCode=" + areaCode +
        "}";
    }
}
